package cn.ronghuanet.org.service.impl;

import cn.ronghuanet.base.service.impl.IBaseServiceImpl;
import cn.ronghuanet.org.domain.Employee;
import cn.ronghuanet.org.mapper.EmployeeMapper;
import cn.ronghuanet.org.service.IEmployeeServiceI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(propagation = Propagation.SUPPORTS,readOnly = true)
public class EmployeeServiceImplI extends IBaseServiceImpl<Employee> implements IEmployeeServiceI {
    @Autowired
    private EmployeeMapper mapper;


    @Override
    public List<String> queryPermissionByUserId(Long id) {
        return mapper.queryPermissionByUserId(id);
    }

    @Override
    public Employee selectByName(String username) {
        return mapper.selectByName(username);
    }
}
